package com.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.dto.*;
import com.sky.entity.Orders;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrdersService extends IService<Orders> {

    public OrderSubmitVO submit(OrdersSubmitDTO ordersSubmitDTO);

    public OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO)  throws Exception;

    public void paySuccess(String outTradeNo);

    PageResult pageOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO details(Long id);

    void cancel(Long id);

    void repetition(Long id);

    PageResult conditionSearch(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderStatisticsVO statistics();

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void rejection(OrdersRejectionDTO ordersRejectionDTO);

    void delivery(Long id);

    void adminCancel(OrdersCancelDTO ordersCancelDTO);

    void complete(Long id);

    void reminder(Long id);
}
